// 入口文件
import Vue from 'vue'
import app from './App.vue'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import './lib/mui/css/mui.min.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import 'swiper/dist/css/swiper.css'
import './lib/mui/css/mui.min.css'
import store from './store'
Vue.use(VueAwesomeSwiper)
//1.1导入router模块
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)
//1.3导入自己的router.js路由模块
import router from './router.js'

//2.1导入vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
//2.2安装vue-resource
//全局设置请求的根路径
Vue.http.options.root = ''

// 引入mint-ui
import { Swipe, SwipeItem } from 'mint-ui'
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

//引入fastclick
import fastclick from 'fastclick'
//应用fastclick
Vue.config.productionTip = false
fastclick.attach(document.body)

var vm = new Vue({
    el:'#app',
    render: c =>c(app),
    router,
    store
})